

            function addArduinoCod (Blockly) {
            
                        

                        
        Blockly.Arduino['EXT_INFRARED_EMISSION_BLOCK_1607568177334'] = function(block)
        {
            let pin = this.getFieldValue('pin');
let value =  Blockly.Arduino.valueToCode(this, 'value', Blockly.Arduino.ORDER_ATOMIC);
          
            Blockly.Arduino.definitions_['include_EXT_INFRARED_EMISSION_BLOCK_1607568177334'] = `\n#include "IRremote.h"`;
            Blockly.Arduino.definitions_['define_EXT_INFRARED_EMISSION_BLOCK_1607568177334'] = `IRremote irsend(${pin});`;
            Blockly.Arduino.definitions_['setup_EXT_INFRARED_EMISSION_BLOCK_1607568177334'] = ``;
             return  `irsend.sendNEC(0x${value});\r\n`;
        }
                    
            return Blockly;
            }

            module.exports = addArduinoCod ;

        